[INFO] cloning repository https://github.com/zy97/code_generator_rs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zy97/code_generator_rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzy97%2Fcode_generator_rs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzy97%2Fcode_generator_rs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 8735778f8680b0c8e6cd19494407b2b8f0f7c56d
[INFO] checking zy97/code_generator_rs against try#a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399 for pr-145770
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzy97%2Fcode_generator_rs" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/zy97/code_generator_rs
[INFO] finished tweaking git repo https://github.com/zy97/code_generator_rs
[INFO] tweaked toml for git repo https://github.com/zy97/code_generator_rs written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/zy97/code_generator_rs on toolchain a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/zy97/code_generator_rs already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] f758779159b61f2ec816c6ce9d35f42e98422765bdb94a8167c6080a1c60524f
[INFO] running `Command { std: "docker" "start" "-a" "f758779159b61f2ec816c6ce9d35f42e98422765bdb94a8167c6080a1c60524f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "f758779159b61f2ec816c6ce9d35f42e98422765bdb94a8167c6080a1c60524f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f758779159b61f2ec816c6ce9d35f42e98422765bdb94a8167c6080a1c60524f", kill_on_drop: false }`
[INFO] [stdout] f758779159b61f2ec816c6ce9d35f42e98422765bdb94a8167c6080a1c60524f
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 2793ab5c83d6ccb1bc55a1bc21a8419f2535e777dd802abbe0f0b7a8d080269f
[INFO] running `Command { std: "docker" "start" "-a" "2793ab5c83d6ccb1bc55a1bc21a8419f2535e777dd802abbe0f0b7a8d080269f", kill_on_drop: false }`
[INFO] [stderr]    Compiling autocfg v1.1.0
[INFO] [stderr]    Compiling proc-macro2 v1.0.63
[INFO] [stderr]    Compiling quote v1.0.29
[INFO] [stderr]    Compiling unicode-ident v1.0.9
[INFO] [stderr]    Compiling serde v1.0.168
[INFO] [stderr]    Compiling version_check v0.9.4
[INFO] [stderr]    Compiling memchr v2.5.0
[INFO] [stderr]    Compiling crossbeam-utils v0.8.16
[INFO] [stderr]    Compiling rustix v0.38.8
[INFO] [stderr]    Compiling unicase v2.6.0
[INFO] [stderr]     Checking cfg-if v1.0.0
[INFO] [stderr]     Checking bitflags v2.4.0
[INFO] [stderr]    Compiling memoffset v0.9.0
[INFO] [stderr]    Compiling num-traits v0.2.15
[INFO] [stderr]     Checking linux-raw-sys v0.4.5
[INFO] [stderr]    Compiling libc v0.2.147
[INFO] [stderr]    Compiling crossbeam-epoch v0.9.15
[INFO] [stderr]    Compiling mime_guess v2.0.4
[INFO] [stderr]     Checking itoa v1.0.7
[INFO] [stderr]    Compiling libm v0.2.7
[INFO] [stderr]    Compiling serde_json v1.0.99
[INFO] [stderr]     Checking utf8parse v0.2.1
[INFO] [stderr]     Checking ryu v1.0.13
[INFO] [stderr]     Checking anstyle-parse v0.2.1
[INFO] [stderr]     Checking aho-corasick v1.0.2
[INFO] [stderr]     Checking regex-syntax v0.7.2
[INFO] [stderr]    Compiling syn v2.0.23
[INFO] [stderr]     Checking anstyle-query v1.0.0
[INFO] [stderr]     Checking is-terminal v0.4.9
[INFO] [stderr]    Compiling minimal-lexical v0.2.1
[INFO] [stderr]    Compiling mime v0.3.17
[INFO] [stderr]    Compiling futures-core v0.3.28
[INFO] [stderr]     Checking colorchoice v1.0.0
[INFO] [stderr]     Checking anstyle v1.0.1
[INFO] [stderr]     Checking scopeguard v1.1.0
[INFO] [stderr]     Checking anstream v0.3.2
[INFO] [stderr]    Compiling nom v7.1.3
[INFO] [stderr]    Compiling tokio v1.29.1
[INFO] [stderr]     Checking either v1.8.1
[INFO] [stderr]     Checking lazy_static v1.4.0
[INFO] [stderr]     Checking strsim v0.10.0
[INFO] [stderr]    Compiling rayon-core v1.11.0
[INFO] [stderr]     Checking pin-project-lite v0.2.10
[INFO] [stderr]    Compiling thiserror v1.0.41
[INFO] [stderr]     Checking once_cell v1.18.0
[INFO] [stderr]     Checking clap_lex v0.5.0
[INFO] [stderr]     Checking humansize v2.1.3
[INFO] [stderr]     Checking crossbeam-deque v0.8.3
[INFO] [stderr]     Checking clap_builder v4.3.22
[INFO] [stderr]     Checking num_cpus v1.16.0
[INFO] [stderr]     Checking crossbeam-channel v0.5.8
[INFO] [stderr]     Checking percent-encoding v2.3.0
[INFO] [stderr]     Checking unicode-width v0.1.10
[INFO] [stderr]     Checking askama_escape v0.10.3
[INFO] [stderr]     Checking plotters-backend v0.3.5
[INFO] [stderr]     Checking textwrap v0.11.0
[INFO] [stderr]     Checking itertools v0.10.5
[INFO] [stderr]     Checking plotters-svg v0.3.5
[INFO] [stderr]     Checking regex v1.8.4
[INFO] [stderr]     Checking csv-core v0.1.10
[INFO] [stderr]     Checking half v1.8.2
[INFO] [stderr]     Checking cast v0.3.0
[INFO] [stderr]     Checking Inflector v0.11.4
[INFO] [stderr]     Checking bitflags v1.3.2
[INFO] [stderr]     Checking base64 v0.21.2
[INFO] [stderr]     Checking same-file v1.0.6
[INFO] [stderr]     Checking clap v2.34.0
[INFO] [stderr]     Checking rayon v1.7.0
[INFO] [stderr]     Checking walkdir v2.3.3
[INFO] [stderr]     Checking plotters v0.3.5
[INFO] [stderr]     Checking atty v0.2.14
[INFO] [stderr]     Checking bytes v1.4.0
[INFO] [stderr]     Checking criterion-plot v0.4.5
[INFO] [stderr]     Checking oorandom v11.1.3
[INFO] [stderr]     Checking clap v4.3.22
[INFO] [stderr]     Checking tokio-stream v0.1.14
[INFO] [stderr]    Compiling serde_derive v1.0.168
[INFO] [stderr]    Compiling thiserror-impl v1.0.41
[INFO] [stderr]    Compiling async-stream-impl v0.3.5
[INFO] [stderr]     Checking async-stream v0.3.5
[INFO] [stderr]     Checking tokio-test v0.4.2
[INFO] [stderr]     Checking csv v1.2.2
[INFO] [stderr]     Checking serde_cbor v0.11.2
[INFO] [stderr]    Compiling basic-toml v0.1.4
[INFO] [stderr]     Checking tinytemplate v1.2.1
[INFO] [stderr]    Compiling askama_derive v0.12.1
[INFO] [stderr]     Checking criterion v0.3.6
[INFO] [stderr]     Checking askama v0.12.0
[INFO] [stderr]     Checking code_generator v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0432]: unresolved import `encoding_rs`
[INFO] [stdout]  --> tests/my_test.rs:9:9
[INFO] [stdout]   |
[INFO] [stdout] 9 |     use encoding_rs::UTF_8;
[INFO] [stdout]   |         ^^^^^^^^^^^ use of unresolved module or unlinked crate `encoding_rs`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `encoding_rs`, use `cargo add encoding_rs` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs::File`
[INFO] [stdout]  --> tests/my_test.rs:3:9
[INFO] [stdout]   |
[INFO] [stdout] 3 |     use std::fs::File;
[INFO] [stdout]   |         ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Read`
[INFO] [stdout]  --> tests/my_test.rs:4:9
[INFO] [stdout]   |
[INFO] [stdout] 4 |     use std::io::Read;
[INFO] [stdout]   |         ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0432`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `code_generator` (test "my_test") due to 1 previous error; 2 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]   --> src/entities/wes.rs:93:17
[INFO] [stdout]    |
[INFO] [stdout] 93 |             let res = template.write_into(&mut file)?;
[INFO] [stdout]    |                 ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]   --> src/entities/wes.rs:93:17
[INFO] [stdout]    |
[INFO] [stdout] 93 |             let res = template.write_into(&mut file)?;
[INFO] [stdout]    |                 ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]   --> src/entities/mod.rs:65:9
[INFO] [stdout]    |
[INFO] [stdout] 65 |     let res = match args.mode {
[INFO] [stdout]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]   --> src/entities/mod.rs:65:9
[INFO] [stdout]    |
[INFO] [stdout] 65 |     let res = match args.mode {
[INFO] [stdout]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_dir` is never used
[INFO] [stdout]   --> src/entities/mod.rs:22:8
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub fn create_dir(dir: &str) -> Result<(), CodeGeneratorError> {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `DprintError` is never constructed
[INFO] [stdout]   --> src/error.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 7  | pub enum CodeGeneratorError {
[INFO] [stdout]    |          ------------------ variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 13 |     DprintError(String),
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CodeGeneratorError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_args_from` is never used
[INFO] [stdout]   --> src/args.rs:77:8
[INFO] [stdout]    |
[INFO] [stdout] 77 | pub fn get_args_from<I, T>(itr: I) -> Result<Arguments, CodeGeneratorError>
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `namespace` is never read
[INFO] [stdout]    --> src/args.rs:123:9
[INFO] [stdout]     |
[INFO] [stdout] 122 | pub struct ClassInfo {
[INFO] [stdout]     |            --------- field in this struct
[INFO] [stdout] 123 |     pub namespace: String,
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ClassInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_dir` is never used
[INFO] [stdout]   --> src/entities/mod.rs:22:8
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub fn create_dir(dir: &str) -> Result<(), CodeGeneratorError> {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `DprintError` is never constructed
[INFO] [stdout]   --> src/error.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 7  | pub enum CodeGeneratorError {
[INFO] [stdout]    |          ------------------ variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 13 |     DprintError(String),
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CodeGeneratorError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `namespace` is never read
[INFO] [stdout]    --> src/args.rs:123:9
[INFO] [stdout]     |
[INFO] [stdout] 122 | pub struct ClassInfo {
[INFO] [stdout]     |            --------- field in this struct
[INFO] [stdout] 123 |     pub namespace: String,
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ClassInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "2793ab5c83d6ccb1bc55a1bc21a8419f2535e777dd802abbe0f0b7a8d080269f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2793ab5c83d6ccb1bc55a1bc21a8419f2535e777dd802abbe0f0b7a8d080269f", kill_on_drop: false }`
[INFO] [stdout] 2793ab5c83d6ccb1bc55a1bc21a8419f2535e777dd802abbe0f0b7a8d080269f
